#include "GameEngine.h"


GameEngine::GameEngine()
{
	game = new Game(this);
}


void GameEngine::startGame()
{
	game->askMove();
}


void GameEngine::recupMove(int x,int y)
{	
//	cout << "GameEngine::recupMove()\"" << endl;
	
	game->playMove( Move(x,y) );
}


void GameEngine::nextTurn()
{
	if( game->getIsFinished() )
	{
		game->winner();
	}
	else
	{
		game->askMove();
	}
}	


Game* GameEngine::getGame()
{
	return game;
}

void GameEngine::initializationDisplay()
{
	game->initializationDisplay();
}
